﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style>
        body {
            font-family: Verdana, Tahoma, Sans-Serif;
            font-size: small;
            background-color: #cccccc;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="margin: auto;">
            <tr>
                <th>
                    <asp:Label ID="Label1" runat="server" Text="Template:" AssociatedControlID="DropDownListTemplate" />
                </th>
                <td>
                    <asp:DropDownList ID="DropDownListTemplate" runat="server" />
                </td>
                <th>
                    <asp:Label ID="Label2" runat="server" Text="IFrame size:" AssociatedControlID="TextBoxW" />
                </th>
                <td>
                    <asp:TextBox ID="TextBoxW" runat="server" MaxLength="4" Width="40px" Text="180" />
                    &times;
                    <asp:TextBox ID="TextBoxH" runat="server" MaxLength="4" Width="40px" Text="250" />
                </td>
                <td>
                    <asp:Button ID="ButtonOK" runat="server" Text="OK" />
                </td>
            </tr>
        </table>
        <div style="text-align: center; margin: 1em;">
            <asp:Literal ID="LiteralLive" runat="server" Mode="PassThrough">
            <p><a href="{2}">{2}</a></p>
            <iframe src="{2}" width="{0}px" height="{1}px" frameborder="0" scrolling="no" style="border:none"></iframe>
            </asp:Literal>
        </div>
        <div style="text-align: center; margin: 1em;">
            <asp:Literal ID="LiteralCode" runat="server" Mode="Encode">
            <iframe src="{2}" width="{0}px" height="{1}px" frameborder="0" scrolling="no" style="border:none"></iframe>
            </asp:Literal>
        </div>
    </div>
    </form>
</body>
</html>
